import request from '/@/utils/request';
import { AxiosRequestConfig } from 'axios';


// 查询分页列表
export const getCameraDeviceBindApi = (params?: object) => {
	return request({
		url: '/ITS/Camera_Device_Bind/QueryPageList',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
};
//删除
export const deleteCameraDeviceBindApi = (params?: object) => {
	return request({
		url: '/ITS/Camera_Device_Bind/Delete',
		method: 'delete',
		params: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
};
//添加
export const addCameraDeviceBindApi = (params?: object) => {
	return request({
		url: '/ITS/Camera_Device_Bind/Add',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
};
//获取设备树列表
export const getCameraDeviceBindTreeApi = (params?: object) => {
	return request({
		url: '/ITS/Camera_Device_Bind/GetDeviceTreeList',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
};
//获取摄像头列表
export const getCameraDeviceBindCameraListApi = (params?: object) => {
	return request({
		url: '/ITS/Camera/DropDownList',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
};
//获取详情
export const getCameraDeviceBindDetailApi = (params?: object) => {
	return request({
		url: '/ITS/Camera_Device_Bind/GetDetail',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
};


//================================================================
// 获取算法模型设备绑定列表 分页查询
export const QueryPageList = (params?: object) => {
	return request({
		url: '/ITS/AlgorithmModelDeviceBind/QueryPageList',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

// 算法模型设备绑定 新增
export const Add = (params?: object) => {
	return request({
		url: '/ITS/AlgorithmModelDeviceBind/Add',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

export const Adds = (params?: object) => {
	return request({
		url: '/ITS/AlgorithmModelDeviceBind/BatchAdd',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

// 算法模型设备绑定 删除
export const Delete = (params?: object) => {
	return request({
		url: '/ITS/AlgorithmModelDeviceBind/Delete',
		method: 'post',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

//算法模型设备绑定 详情
export const Get = (params?: object) => {
	return request({
		url: '/ITS/AlgorithmModelDeviceBind/Get',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}

//设备类型下拉列表
export const DeviceTypeDropDownList = (params?: object) => {
	return request({
		url: '/ITS/AlgorithmModelDeviceBind/DeviceTypeDropDownList',
		method: 'get',
		data: params,
		multiPartFormData: false,
	} as AxiosRequestConfig);
}